home *** CD-ROM | disk | FTP | other *** search
- Path: gate.net!news-adm
- From: porter@gate.net (Todd Porter)
- Newsgroups: comp.lang.c++
- Subject: Re: Dynamic Multi-Dimen. Array
- Date: 11 Jan 1996 17:59:59 GMT
- Organization: 2Morrow, Inc.
- Message-ID: <4d3j6v$1bc8@news.gate.net>
- References: <4d337m$lug@news.gate.net> <ALUN.CHAMPION.96Jan11115845@g7240065.bridge.bst.bls.com>
- NNTP-Posting-Host: jaxfl2-11.gate.net
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=ISO-8859-1
- X-Newsreader: WinVN 0.99.5
-
- In article <ALUN.CHAMPION.96Jan11115845@g7240065.bridge.bst.bls.com>,
- Alun.Champion@bridge.bst.bls.com says...
- >
- >In article <4d337m$lug@news.gate.net> porter@gate.net (Todd Porter) writes:
- >
- >: I need to create an array like float[x][3] where the x can change. I want
- to
- >: dynamically allocate the memory when I figure out what the x is - Can
- anyone
- >: help out with this?
- >
- >How about:
- >
- > float (*x)[3];
- > int size;
- > ...
- > size = ???;
- > x = new float[size][3];
-
- Looks kinda odd but I'll give it a shot.
-
- Thanks,
-
- Todd
-
-
-